package com.atguigu.eduService.client.impl;

import com.atguigu.common.Result;
import com.atguigu.eduService.client.VodClient;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * 在调用服务失败,执行里面定义的方法
 *
 * @author Summerday
 */
@Component
public class VodClientImpl implements VodClient {

    @Override
    public Result removeVideo(String videoSourceId) {
        return Result.error().message("删除视频失败");
    }

    @Override
    public Result removeVideoList(List<String> videoIdList) {
        return Result.error().message("删除视频失败");
    }
}
